Skip to main content

TRFILE_CNDB

This project covers all the test cases of File trigger

Sr. NoService NameDescription
1.ReadFileRead the records from file e.g CSV Orders file and write it to db . Move the file to done folder. (to triggger this file handling scenario - save a csv file on the specified source location. check db to verify tht recoreds are inserted)
2.WriteErrorRecordFileRead the records from file e.g JSON Orders file . Let the file have 7 valid order and 3 order with no Price. Check with condition block, the price field. if prices is null, then write error for that record, else write success record. At the end done long for trigger executed successfully.
3.readFileWriteFileRead the records from file e.g TXT file . File have some data, and will be considered as payload for the service. Write the payload to another file with file connector. After fitle write trigger is executed sucessfully.
4.CronFileReaderRead file with txt extension on every saturday 7 am. Log after file is read. After logging, trigger is executed sucessfully.